package com.zqh.generator;

import cn.hutool.core.io.FileUtil;

import java.io.File;

public class StaticGenerator {

    /**
     * 拷贝文件（Hutool 实现，会将输入目录完整拷贝到输出目录下）
     * @param inputPath
     * @param outputPath
     */
    public static void copyFilesByHutool(String inputPath, String outputPath) {
        FileUtil.copy(inputPath, outputPath, false);

    }

    public static void main(String[] args) {

        // 获取根路径
        String projectPath = System.getProperty("user.dir");
        File projectFile = new File(projectPath);
        // 模板路径
        String inputPath = new File(projectPath,"zqh-generator-demo-projects/acm-template").getAbsolutePath();
        // 输出路径
        String outputPath = projectPath;
        // 复制
        copyFilesByHutool(inputPath,outputPath);

    }



}
